/*
 * @(#)NoticeDAO.java $version 2012-8-9
 * 
 * Copyright 2012 NADOSTAR Gruop. All rights Reserved.
 * NADOSTAR PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nadostar.iims.etc.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.nadostar.extensions.util.DataMap;
import com.nadostar.iims.model.Notice;

/**
 * The Class NoticeDAO.
 * 
 * @author Lixing
 *
 */
public interface NoticeDAO {
	/**
	 * 공지사항 리스트 가져오기.
	 * 
	 * @param ntcTypeCd 공지타입
	 * @param offset
	 * @param count
	 * @return
	 * @throws DataAccessException
	 */
	List<DataMap> selectNoticeList(String ntcTypeCd, String delYn, int offset, int count) throws DataAccessException;
	/**
	 * 공지사항 리스트 총 갯수 가져오기.
	 * 
	 * @param ntcTypeCd 공지타입
	 * @return
	 * @throws DataAccessException
	 */
	int selectNoticeListCount(String ntcTypeCd, String delYn) throws DataAccessException;
	/**
	 * 공지사항 상세정보
	 * 
	 * @param ntcSeq
	 * @return
	 * @throws DataAccessException
	 */
	Notice selectNoticeDetail(int ntcSeq) throws DataAccessException;
	/**
	 * 신규 공지시항.
	 * 
	 * @param notice
	 * @return
	 * @throws DataAccessException
	 */
	int insertNotice(Notice notice) throws DataAccessException;
	/**
	 * 수정 공지사항.
	 * 
	 * @param notice
	 * @return
	 * @throws DataAccessException
	 */
	int updateNotice(Notice notice) throws DataAccessException;
	/**
	 * 삭제 공지사항.
	 * 
	 * @param ntcSeq
	 * @return
	 * @throws DataAccessException
	 */
	int deleteNotice(int ntcSeq, String delYn) throws DataAccessException;
}
